package com.example.rabbitmqstudy.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import com.example.rabbitmqstudy.constant.RabbitConstant;

/**
 * @author admin
 * @date 2021/07/16 09:05
 */
@Component
public class RabbitRpcProvider {

    @Bean
    public Queue rpcQueue(){
        return new Queue(RabbitConstant.RPC_QUEUE_NAME);
    }
}
